package com.bjpowernode;

import com.bjpowernode.ba03.SomeService3;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest03 {

    @Test
    public void test01(){
        String configure="ba03/applicationContext.xml";
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext(configure);
        SomeService3 proxy=(SomeService3) applicationContext.getBean("service");
       String str= proxy.doFirst("李红磊",21);
        System.out.println("目标方法的返回值"+str);

    }
}
